<?php
namespace app\admin\controller;
use think\Controller;

class Goods extends Init
{
    public function index()
    {
        return view();
    }
    public function goods_list()
    {
    $data=array([
      "id"=> "10001"
      ,"username"=> "杜甫111"
      ,"email"=> "xianxin@layui.com"
      ,"sex"=> "男"
      ,"city"=> "浙江杭州"
      ,"sign"=> "人生恰似一场修行"
      ,"experience"=> "116"
      ,"ip"=> "192.168.0.8"
      ,"logins"=> "108"
      ,"joinTime"=> "2016-10-14"
    ], [
      "id"=> "10002"
      ,"username"=> "李白"
      ,"email"=> "xianxin@layui.com"
      ,"sex"=> "男"
      ,"city"=> "浙江杭州"
      ,"sign"=> "人生恰似一场修行"
      ,"experience"=> "12"
      ,"ip"=> "192.168.0.8"
      ,"logins"=> "106"
      ,"joinTime"=> "2016-10-14"
      ,"LAY_CHECKED"=> true
    ],);
    // print_R($data);
    
    $this->assign('data',$data);
        return view();
    }

    public function goods_add()
    {
        return view('goods_info');
    }

    public function goods_img()
    {

    	
		$data=array();
		$data['code']=0;
		$data['smg']=0;
		$data['data']['src']='/tp5/public/static/images/btn_6s.png';
		$data['data']['title']='图片名称';

        return json_encode($data);
    }
}
